import request from '@/utils/request'

export function update(data) {
  return request({
    url: '/goods/update',
    method: 'post',
    data
  })
}

export function query(params) {
  return request({
    url: '/salary/query',
    method: 'get',
    params
  })
}

export function add(params) {
  return request({
    url: '/salary/add',
    method: 'get',
    params
  })
}

export function deleteGoods(data) {
  return request({
    url: '/goods/del/',
    method: 'post',
    data
  })
}

export function goodList(data) {
  return request({
    url: '/goods/list/',
    method: 'post',
    data
  })
}

export function addGoods(data) {
  return request({
    url: '/goods/add/',
    method: 'post',
    data
  })
}
export function fineHigh() {
  return request({
    url: '/salary/fineHigh/',
    method: 'get',
  })
}

export function selectSalary(data) {
  return request({
    url: '/salary/selectSalary/',
    method: 'post',
    data
  })
}

